package com.learn.sb.sblearnshardingjdbc.service.impl;

import com.learn.sb.sblearnshardingjdbc.dao.LogassetDao;
import com.learn.sb.sblearnshardingjdbc.pojo.Logasset;
import com.learn.sb.sblearnshardingjdbc.service.LogassetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogassetServiceImpl implements LogassetService {

	@Autowired
	private LogassetDao logassetDao;

	@Override
	public Logasset getByBizdate(Integer bizdate) {
		return logassetDao.getByBizdate(bizdate);
	}

	@Override
	public List<Logasset> listByBetween(Integer beginDate, Integer endDate) {
		return logassetDao.listByBetween(beginDate, endDate);
	}
}
